Optimal. Leaf size=238 \[ \frac {b \left (44 a^2-28 a b+5 b^2\right ) \sinh (c+d x) \cosh ^5(c+d x)}{160 d}+\frac {(4 a-b) \left (8 a^2-2 a b+b^2\right ) \sinh (c+d x) \cosh ^3(c+d x)}{128 d}+\frac {3 (4 a-b) \left (8 a^2-2 a b+b^2\right ) \sinh (c+d x) \cosh (c+d x)}{256 d}+\frac {3}{256} x (4 a-b) \left (8 a^2-2 a b+b^2\right )+\frac {b \sinh (c+d x) \cosh ^9(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{10 d}+\frac {b \sinh (c+d x) \cosh ^7(c+d x) \left (a (10 a-b)-5 (a-b) (2 a-b) \tanh ^2(c+d x)\right )}{80 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.33, antiderivative size = 238, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3191, 413, 526, 385, 199, 206} \[ \frac {b \left (44 a^2-28 a b+5 b^2\right ) \sinh (c+d x) \cosh ^5(c+d x)}{160 d}+\frac {(4 a-b) \left (8 a^2-2 a b+b^2\right ) \sinh (c+d x) \cosh ^3(c+d x)}{128 d}+\frac {3 (4 a-b) \left (8 a^2-2 a b+b^2\right ) \sinh (c+d x) \cosh (c+d x)}{256 d}+\frac {3}{256} x (4 a-b) \left (8 a^2-2 a b+b^2\right )+\frac {b \sinh (c+d x) \cosh ^9(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{10 d}+\frac {b \sinh (c+d x) \cosh ^7(c+d x) \left (a (10 a-b)-5 (a-b) (2 a-b) \tanh ^2(c+d x)\right )}{80 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 199
Rule 206
Rule 385
Rule 413
Rule 526
Rule 3191
Rubi steps
\begin {align*} \int \cosh ^4(c+d x) \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (a-(a-b) x^2\right )^3}{\left (1-x^2\right )^6} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {b \cosh ^9(c+d x) \sinh (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{10 d}-\frac {\operatorname {Subst}\left (\int \frac {\left (-a (10 a-b)+5 (a-b) (2 a-b) x^2\right ) \left (a+(-a+b) x^2\right )}{\left (1-x^2\right )^5} \, dx,x,\tanh (c+d x)\right )}{10 d}\\ &=\frac {b \cosh ^9(c+d x) \sinh (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{10 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x) \left (a (10 a-b)-5 (a-b) (2 a-b) \tanh ^2(c+d x)\right )}{80 d}-\frac {\operatorname {Subst}\left (\int \frac {-a (8 a-b) (10 a-b)+5 (8 a-3 b) (a-b) (2 a-b) x^2}{\left (1-x^2\right )^4} \, dx,x,\tanh (c+d x)\right )}{80 d}\\ &=\frac {b \left (44 a^2-28 a b+5 b^2\right ) \cosh ^5(c+d x) \sinh (c+d x)}{160 d}+\frac {b \cosh ^9(c+d x) \sinh (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{10 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x) \left (a (10 a-b)-5 (a-b) (2 a-b) \tanh ^2(c+d x)\right )}{80 d}+\frac {\left ((4 a-b) \left (8 a^2-2 a b+b^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\left (1-x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{32 d}\\ &=\frac {(4 a-b) \left (8 a^2-2 a b+b^2\right ) \cosh ^3(c+d x) \sinh (c+d x)}{128 d}+\frac {b \left (44 a^2-28 a b+5 b^2\right ) \cosh ^5(c+d x) \sinh (c+d x)}{160 d}+\frac {b \cosh ^9(c+d x) \sinh (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{10 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x) \left (a (10 a-b)-5 (a-b) (2 a-b) \tanh ^2(c+d x)\right )}{80 d}+\frac {\left (3 (4 a-b) \left (8 a^2-2 a b+b^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\left (1-x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{128 d}\\ &=\frac {3 (4 a-b) \left (8 a^2-2 a b+b^2\right ) \cosh (c+d x) \sinh (c+d x)}{256 d}+\frac {(4 a-b) \left (8 a^2-2 a b+b^2\right ) \cosh ^3(c+d x) \sinh (c+d x)}{128 d}+\frac {b \left (44 a^2-28 a b+5 b^2\right ) \cosh ^5(c+d x) \sinh (c+d x)}{160 d}+\frac {b \cosh ^9(c+d x) \sinh (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{10 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x) \left (a (10 a-b)-5 (a-b) (2 a-b) \tanh ^2(c+d x)\right )}{80 d}+\frac {\left (3 (4 a-b) \left (8 a^2-2 a b+b^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{256 d}\\ &=\frac {3}{256} (4 a-b) \left (8 a^2-2 a b+b^2\right ) x+\frac {3 (4 a-b) \left (8 a^2-2 a b+b^2\right ) \cosh (c+d x) \sinh (c+d x)}{256 d}+\frac {(4 a-b) \left (8 a^2-2 a b+b^2\right ) \cosh ^3(c+d x) \sinh (c+d x)}{128 d}+\frac {b \left (44 a^2-28 a b+5 b^2\right ) \cosh ^5(c+d x) \sinh (c+d x)}{160 d}+\frac {b \cosh ^9(c+d x) \sinh (c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{10 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x) \left (a (10 a-b)-5 (a-b) (2 a-b) \tanh ^2(c+d x)\right )}{80 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.53, size = 144, normalized size = 0.61 \[ \frac {120 (4 a-b) \left (8 a^2-2 a b+b^2\right ) (c+d x)-10 b \left (b^2-16 a^2\right ) \sinh (6 (c+d x))+20 \left (128 a^3-24 a^2 b+b^3\right ) \sinh (2 (c+d x))+40 \left (8 a^3+12 a^2 b-6 a b^2+b^3\right ) \sinh (4 (c+d x))+5 b^2 (6 a-b) \sinh (8 (c+d x))+2 b^3 \sinh (10 (c+d x))}{10240 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.73, size = 376, normalized size = 1.58 \[ \frac {5 \, b^{3} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{9} + 10 \, {\left (6 \, b^{3} \cosh \left (d x + c\right )^{3} + {\left (6 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{7} + {\left (126 \, b^{3} \cosh \left (d x + c\right )^{5} + 70 \, {\left (6 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )^{3} + 15 \, {\left (16 \, a^{2} b - b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{5} + 10 \, {\left (6 \, b^{3} \cosh \left (d x + c\right )^{7} + 7 \, {\left (6 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )^{5} + 5 \, {\left (16 \, a^{2} b - b^{3}\right )} \cosh \left (d x + c\right )^{3} + 4 \, {\left (8 \, a^{3} + 12 \, a^{2} b - 6 \, a b^{2} + b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 30 \, {\left (32 \, a^{3} - 16 \, a^{2} b + 6 \, a b^{2} - b^{3}\right )} d x + 5 \, {\left (b^{3} \cosh \left (d x + c\right )^{9} + 2 \, {\left (6 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )^{7} + 3 \, {\left (16 \, a^{2} b - b^{3}\right )} \cosh \left (d x + c\right )^{5} + 8 \, {\left (8 \, a^{3} + 12 \, a^{2} b - 6 \, a b^{2} + b^{3}\right )} \cosh \left (d x + c\right )^{3} + 2 \, {\left (128 \, a^{3} - 24 \, a^{2} b + b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{2560 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 293, normalized size = 1.23 \[ \frac {b^{3} e^{\left (10 \, d x + 10 \, c\right )}}{10240 \, d} - \frac {b^{3} e^{\left (-10 \, d x - 10 \, c\right )}}{10240 \, d} + \frac {3}{256} \, {\left (32 \, a^{3} - 16 \, a^{2} b + 6 \, a b^{2} - b^{3}\right )} x + \frac {{\left (6 \, a b^{2} - b^{3}\right )} e^{\left (8 \, d x + 8 \, c\right )}}{4096 \, d} + \frac {{\left (16 \, a^{2} b - b^{3}\right )} e^{\left (6 \, d x + 6 \, c\right )}}{2048 \, d} + \frac {{\left (8 \, a^{3} + 12 \, a^{2} b - 6 \, a b^{2} + b^{3}\right )} e^{\left (4 \, d x + 4 \, c\right )}}{512 \, d} + \frac {{\left (128 \, a^{3} - 24 \, a^{2} b + b^{3}\right )} e^{\left (2 \, d x + 2 \, c\right )}}{1024 \, d} - \frac {{\left (128 \, a^{3} - 24 \, a^{2} b + b^{3}\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{1024 \, d} - \frac {{\left (8 \, a^{3} + 12 \, a^{2} b - 6 \, a b^{2} + b^{3}\right )} e^{\left (-4 \, d x - 4 \, c\right )}}{512 \, d} - \frac {{\left (16 \, a^{2} b - b^{3}\right )} e^{\left (-6 \, d x - 6 \, c\right )}}{2048 \, d} - \frac {{\left (6 \, a b^{2} - b^{3}\right )} e^{\left (-8 \, d x - 8 \, c\right )}}{4096 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 267, normalized size = 1.12 \[ \frac {b^{3} \left (\frac {\left (\sinh ^{5}\left (d x +c \right )\right ) \left (\cosh ^{5}\left (d x +c \right )\right )}{10}-\frac {\left (\sinh ^{3}\left (d x +c \right )\right ) \left (\cosh ^{5}\left (d x +c \right )\right )}{16}+\frac {\sinh \left (d x +c \right ) \left (\cosh ^{5}\left (d x +c \right )\right )}{32}-\frac {\left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{4}+\frac {3 \cosh \left (d x +c \right )}{8}\right ) \sinh \left (d x +c \right )}{32}-\frac {3 d x}{256}-\frac {3 c}{256}\right )+3 a \,b^{2} \left (\frac {\left (\sinh ^{3}\left (d x +c \right )\right ) \left (\cosh ^{5}\left (d x +c \right )\right )}{8}-\frac {\sinh \left (d x +c \right ) \left (\cosh ^{5}\left (d x +c \right )\right )}{16}+\frac {\left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{4}+\frac {3 \cosh \left (d x +c \right )}{8}\right ) \sinh \left (d x +c \right )}{16}+\frac {3 d x}{128}+\frac {3 c}{128}\right )+3 a^{2} b \left (\frac {\sinh \left (d x +c \right ) \left (\cosh ^{5}\left (d x +c \right )\right )}{6}-\frac {\left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{4}+\frac {3 \cosh \left (d x +c \right )}{8}\right ) \sinh \left (d x +c \right )}{6}-\frac {d x}{16}-\frac {c}{16}\right )+a^{3} \left (\left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{4}+\frac {3 \cosh \left (d x +c \right )}{8}\right ) \sinh \left (d x +c \right )+\frac {3 d x}{8}+\frac {3 c}{8}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.45, size = 363, normalized size = 1.53 \[ \frac {1}{64} \, a^{3} {\left (24 \, x + \frac {e^{\left (4 \, d x + 4 \, c\right )}}{d} + \frac {8 \, e^{\left (2 \, d x + 2 \, c\right )}}{d} - \frac {8 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d} - \frac {e^{\left (-4 \, d x - 4 \, c\right )}}{d}\right )} - \frac {1}{20480} \, b^{3} {\left (\frac {{\left (5 \, e^{\left (-2 \, d x - 2 \, c\right )} + 10 \, e^{\left (-4 \, d x - 4 \, c\right )} - 40 \, e^{\left (-6 \, d x - 6 \, c\right )} - 20 \, e^{\left (-8 \, d x - 8 \, c\right )} - 2\right )} e^{\left (10 \, d x + 10 \, c\right )}}{d} + \frac {240 \, {\left (d x + c\right )}}{d} + \frac {20 \, e^{\left (-2 \, d x - 2 \, c\right )} + 40 \, e^{\left (-4 \, d x - 4 \, c\right )} - 10 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5 \, e^{\left (-8 \, d x - 8 \, c\right )} + 2 \, e^{\left (-10 \, d x - 10 \, c\right )}}{d}\right )} - \frac {3}{2048} \, a b^{2} {\left (\frac {{\left (8 \, e^{\left (-4 \, d x - 4 \, c\right )} - 1\right )} e^{\left (8 \, d x + 8 \, c\right )}}{d} - \frac {48 \, {\left (d x + c\right )}}{d} - \frac {8 \, e^{\left (-4 \, d x - 4 \, c\right )} - e^{\left (-8 \, d x - 8 \, c\right )}}{d}\right )} + \frac {1}{128} \, a^{2} b {\left (\frac {{\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + 1\right )} e^{\left (6 \, d x + 6 \, c\right )}}{d} - \frac {24 \, {\left (d x + c\right )}}{d} + \frac {3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} - e^{\left (-6 \, d x - 6 \, c\right )}}{d}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.58, size = 209, normalized size = 0.88 \[ \frac {320\,a^3\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )+40\,a^3\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )+\frac {5\,b^3\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )}{2}+5\,b^3\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )-\frac {5\,b^3\,\mathrm {sinh}\left (6\,c+6\,d\,x\right )}{4}-\frac {5\,b^3\,\mathrm {sinh}\left (8\,c+8\,d\,x\right )}{8}+\frac {b^3\,\mathrm {sinh}\left (10\,c+10\,d\,x\right )}{4}-60\,a^2\,b\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )-30\,a\,b^2\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )+60\,a^2\,b\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )+20\,a^2\,b\,\mathrm {sinh}\left (6\,c+6\,d\,x\right )+\frac {15\,a\,b^2\,\mathrm {sinh}\left (8\,c+8\,d\,x\right )}{4}+480\,a^3\,d\,x-15\,b^3\,d\,x+90\,a\,b^2\,d\,x-240\,a^2\,b\,d\,x}{1280\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 24.56, size = 774, normalized size = 3.25 \[ \begin {cases} \frac {3 a^{3} x \sinh ^{4}{\left (c + d x \right )}}{8} - \frac {3 a^{3} x \sinh ^{2}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4} + \frac {3 a^{3} x \cosh ^{4}{\left (c + d x \right )}}{8} - \frac {3 a^{3} \sinh ^{3}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8 d} + \frac {5 a^{3} \sinh {\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} + \frac {3 a^{2} b x \sinh ^{6}{\left (c + d x \right )}}{16} - \frac {9 a^{2} b x \sinh ^{4}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{16} + \frac {9 a^{2} b x \sinh ^{2}{\left (c + d x \right )} \cosh ^{4}{\left (c + d x \right )}}{16} - \frac {3 a^{2} b x \cosh ^{6}{\left (c + d x \right )}}{16} - \frac {3 a^{2} b \sinh ^{5}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{16 d} + \frac {a^{2} b \sinh ^{3}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{2 d} + \frac {3 a^{2} b \sinh {\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{16 d} + \frac {9 a b^{2} x \sinh ^{8}{\left (c + d x \right )}}{128} - \frac {9 a b^{2} x \sinh ^{6}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{32} + \frac {27 a b^{2} x \sinh ^{4}{\left (c + d x \right )} \cosh ^{4}{\left (c + d x \right )}}{64} - \frac {9 a b^{2} x \sinh ^{2}{\left (c + d x \right )} \cosh ^{6}{\left (c + d x \right )}}{32} + \frac {9 a b^{2} x \cosh ^{8}{\left (c + d x \right )}}{128} - \frac {9 a b^{2} \sinh ^{7}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{128 d} + \frac {33 a b^{2} \sinh ^{5}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{128 d} + \frac {33 a b^{2} \sinh ^{3}{\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{128 d} - \frac {9 a b^{2} \sinh {\left (c + d x \right )} \cosh ^{7}{\left (c + d x \right )}}{128 d} + \frac {3 b^{3} x \sinh ^{10}{\left (c + d x \right )}}{256} - \frac {15 b^{3} x \sinh ^{8}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{256} + \frac {15 b^{3} x \sinh ^{6}{\left (c + d x \right )} \cosh ^{4}{\left (c + d x \right )}}{128} - \frac {15 b^{3} x \sinh ^{4}{\left (c + d x \right )} \cosh ^{6}{\left (c + d x \right )}}{128} + \frac {15 b^{3} x \sinh ^{2}{\left (c + d x \right )} \cosh ^{8}{\left (c + d x \right )}}{256} - \frac {3 b^{3} x \cosh ^{10}{\left (c + d x \right )}}{256} - \frac {3 b^{3} \sinh ^{9}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{256 d} + \frac {7 b^{3} \sinh ^{7}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{128 d} + \frac {b^{3} \sinh ^{5}{\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{10 d} - \frac {7 b^{3} \sinh ^{3}{\left (c + d x \right )} \cosh ^{7}{\left (c + d x \right )}}{128 d} + \frac {3 b^{3} \sinh {\left (c + d x \right )} \cosh ^{9}{\left (c + d x \right )}}{256 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{2}{\relax (c )}\right )^{3} \cosh ^{4}{\relax (c )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________